home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
413_01
/
sbf3
/
sbmidi.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-04
|
298b
|
19 lines
#include <stdio.h>
#include <dos.h>
#include "sb.h"
int Sb_Read_MIDI(void)
{
writedac(MIDI_READ_POLL);
while(!(inportb(DSP_DATA_AVAIL) & 0x80))
;
return inportb(DSP_READ_DATA);
}
void Sb_Write_MIDI(int data)
{
writedac(MIDI_WRITE_POLL);
writedac(data);
}